# This Android.mk is used for vendor camera pictures
LOCAL_PATH := $(call my-dir)
RAWINFO_CAMERAPIC := $(LOCAL_PATH)

INSTALLED_VENDOR_CAMERAINFO_TARGET := ${TARGET_OUT_VENDOR_ETC}/camerapicinfo.bin
CAMERAPICINFO_CFG := $(RAWINFO_CAMERAPIC)/../camerapicinfo.cfg

RAWINFO_CAMERAPIC_MODULE := $(RAWINFO_CAMERAPIC)/camerapicinfo.tmp

$(INSTALLED_VENDOR_CAMERAINFO_TARGET): $(CAMERAPICINFO_CFG)
	@rm -f $@; mkdir -p $(dir $@); \
	$(MAKE) -C $(RAWINFO_CAMERAPIC); \
	cp -f $(RAWINFO_CAMERAPIC_MODULE) $@

.PHONY: vendor-camerainfo
vendor-camerainfo: $(INSTALLED_VENDOR_CAMERAINFO_TARGET)

ALL_DEFAULT_INSTALLED_MODULES += $(INSTALLED_VENDOR_CAMERAINFO_TARGET)

